<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%
	String path = request.getContextPath();
%>
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <script type="text/javascript" charset="utf-8" >window.UEDITOR_HOME_URL="<%=path%>/skin/ueditor/"</script>
 <script type="text/javascript" charset="utf-8" >window.CONTEXT_PATH="<%=path%>"</script>
  <script type="text/javascript" src="../../skin/jquery/jquery-1.4.4.min.js"></script>
 <script type="text/javascript" src="../../skin/commscript_jquery.js"></script>
  <script type="text/javascript" charset="utf-8" src="../../skin/ueditor/ueditor.config.js"></script>
  <script type="text/javascript" charset="utf-8" src="../../skin/ueditor/ueditor.all.js"></script>
  <script type="text/javascript" charset="utf-8" src="../../skin/ueditor/lang/zh-cn/zh-cn.js"></script>
	   	<style type="text/css">
	   		button{
	   			width:96px;
	   			height:24px;
	   			border:0;
	   			background-repeat:no-repeat;
	   		}
   	 		li{
   	 			font-size: 14px;
   	 			color:#333;
   	 			font-family: "宋体";
   	 			margin: 5px;
   	 			line-height: 17px;
   	 		}
	   	</style>
	   	<script type="text/javascript">
		function _submit() {
			document.getElementById("contentClob").value = ue.getContent();
			goActionWithTarget(0, "./updateDocument.do", '_self');
		}
	</script>
</head>
<body>
<form action="" method="post">
<input value="${document.clobId}" name="baseClob.clobId" type="hidden">
<input value="${document.sortNum}" name="baseClob.sortNum" type="hidden">
<input value="${document.dateTime}" name="baseClob.dateTime" type="hidden">
<input value="${document.categoryCode}" name="searchCategoryCode" type="hidden">
		<div  align="center" style="margin: 0 auto;">
			<div style="margin: 0 auto;">
				<table width="80%">
					<tr>
						<td>
							<table width="400px" align="left">
								<tr>
									<td>
										<select id="categoryCode" style="height:22px;" name="baseClob.categoryCode">
											<c:if test="${document.categoryCode eq \"zxcs\"}">
												<option value="zxcs" selected="selected">装修常识</option>
											</c:if>
											<c:if test="${document.categoryCode eq \"news\"}">
												<option value="news"  selected="selected">新闻中心</option>
											</c:if>
										</select>
									</td>
									<td>
										标题：
									</td>
									<td>
										<input value="${document.title }" name="baseClob.title" id="title" type="text" >
										<input type="button" value="提交" onclick="_submit();">
										<input value="" name="baseClob.contentClob" id="contentClob" type="hidden"/>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td align="left" height="400px">
							<textarea rows="" cols=""  style="height:400px" id="Editor" >
							<c:out value="${document.contentClob }" />
							</textarea>
							 <script type="text/javascript">
								var ue =  UE.getEditor('Editor');
							 </script>
						</td>
					</tr>
				</table>
			</div>
		</div>
</form>
</body>
</html>